/**
 * 
 */
package com.thor.palmmall.rest.vkcommunicate;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.commons.entity.BeanOperateInfo;
import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.query.QueryResult;
import com.thor.palmmall.rest.common.AUserGroupLoadParam;

/**
 * @author Captain
 *
 * @since 1.0
 */
@Path("/vkcommunicate")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface AVKCommunicateService {

  @POST
  @Path(value = "/save")
  public String save(AVKCommunicate vkcommunicate, @QueryParam("") BeanOperateInfo operateInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/query")
  public QueryResult<AVKCommunicate> query(AVKCommunicateQueryParam queryParam)
      throws ThorServiceException;

  @POST
  @Path(value = "/{id}")
  public AVKCommunicate get(@PathParam("id") String id, AUserGroupLoadParam param)
      throws ThorServiceException;

  @DELETE
  @Path(value = "/{id}")
  public void delete(@PathParam("id") String id, @QueryParam("version") long version,
      @QueryParam("") BeanOperateInfo operateInfo) throws ThorServiceException;

}
